//
//  MD2Entity.h
//  CompGraf2
//
//  Created by Juan Niosi on 04/10/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Entity.h"
#import "MD2Model.h"

#define ANIM_FPS 10.0f;

@interface MD2Entity : Entity
{
    MD2Model *model;
    
    NSString *animName;
    float animTime;
    BOOL animLoop;
    
    BOOL isPlaying;
}
@property (nonatomic, retain) MD2Model *model;

- (id)init:(MD2Model *)md2model withAnim:(NSString *)firstAnim;

- (BOOL)playAnim;
- (BOOL)playAnim:(NSString *)anim loop:(BOOL)doLoop;
- (BOOL)stopAnim;
@end
